import { get,post } from "../../utils/request"
import { addshop } from "./type";
// 门店列表
export const getstores = (data:object) =>{ 
    return get('stores/list',data);
}
// 门店添加
export const storesadd = (data:addshop) =>{ 
    return post('stores/add',data);
}
// 单删
export const storesdelete = (id:number) =>{ 
    return get('stores/delete',{id:id});
}
// 多删
export const storesdeleteall = (ids:[]) =>{ 
    return post('stores/deleteall',{ids});
}
// 单条
export const storesonelist = (id:number) =>{ 
    return get('stores/get',{id:id});
}
// 经营范围
export const storeserviceslist = () =>{ 
    return get('storeservices/list',{psize:10});
}

